# Uncomment this if you reference any of your controllers in activate
# require_dependency 'application'

class DataPagesExtension < Radiant::Extension
  version "0.2"
  description "An extension for pulling in external data and binding it to a template"
  url "http://yourwebsite.com/data_pages"
  
  # define_routes do |map|
  #   map.connect 'admin/data_pages/:action', :controller => 'admin/data_pages'
  # end
  
  def activate
    DataPage
    VirtualDataPage
    # admin.tabs.add "Data Pages", "/admin/data_pages", :after => "Layouts", :visibility => [:all]
  end
  
  def deactivate
    # admin.tabs.remove "Data Pages"
  end
  
end